package com.ysd.lis.controller.bac;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.bac.BacGermInstr;
import com.ysd.lis.request.Params;
import com.ysd.lis.service.bac.BacGermInstrService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 细菌仪器表 前端控制器
 * </p>
 *
 * @author WH
 * @since 2024-11-25
 */
@RestController
@RequestMapping("/bac/germInstr")
public class BacGermInstrController extends BaseController {

    @Autowired
    private BacGermInstrService bacGermInstrService;

    @ApiOperation("获取细菌仪器")
    @GetMapping("/getBacGermInstr")
    public Result getBacGermInstr(Params params) {
        return bacGermInstrService.getBacGermInstr(params);
    }

    @ApiOperation("新增或编辑细菌仪器")
    @PostMapping("/saveOrUpdateInstr")
    public Result saveOrUpdateInstr(@RequestBody List<BacGermInstr> instrList) {
        return bacGermInstrService.saveOrUpdateInstr(instrList);
    }
    @ApiOperation("删除细菌仪器")
    @PostMapping("/deleteInstr")
    public Result deleteInstr(@RequestBody List<BacGermInstr> instrList) {
        return bacGermInstrService.deleteInstr(instrList);
    }

}
